﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VerdePimienta2._0
{
    public partial class Devolucion : Form
    {
        public Devolucion()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            cmbCategProd2.Visible = true;
            txtProd2.Visible = true;
            txtcantProd2.Visible = true;
            txtPrecUnidProd2.Visible = true;

            button2.Visible = true;
        }

        private void fillToolStripButton_Click(object sender, EventArgs e)
        {
            try
            {
                this.buscarVentaTableAdapter.Fill(this.verdepimientadbDataSet.BuscarVenta, new System.Nullable<int>(((int)(System.Convert.ChangeType(idventaToolStripTextBox.Text, typeof(int))))));
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

        }
    }
}
